package com.liwentao.seckill.entity.vo;

import com.liwentao.seckill.validator.IsMobile;
import com.liwentao.seckill.validator.IsPassword;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LoginVo",description = "登录信息对象")
public class LoginVo {

    @ApiModelProperty("电话号码")
    @NotNull
    @IsMobile
    private String mobile;

    @ApiModelProperty("密码")
    @NotNull
    @IsPassword
    private String password;
}
